package cz.mff.kusad5am.hb.service;

import java.util.List;

import cz.mff.kusad5am.hb.dbsim.HostelsDBImitation;
import cz.mff.kusad5am.hb.schema.list.Hostel;
import cz.mff.kusad5am.hb.schema.roomlist.RoomType;

public class ListOfRoomsWorker {

	public List<RoomType> getListOfRooms(Integer id) {
		List<RoomType> toRet = HostelsDBImitation.getIntance().getTypesOfRooms(id);
		return toRet;
	}
	
	public List<RoomType> getListOfRooms(String id) {
		List<RoomType> toRet = HostelsDBImitation.getIntance().getTypesOfRooms(Integer.parseInt(id));
		return toRet;
	}
	
	public Hostel getHostel(String id) {
		return HostelsDBImitation.getIntance().getHostel(Integer.parseInt(id));
	}
}
